package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Clazz implements Serializable {
    private String clno;

    private String sno;

    private String clname;

    private Integer clstate;

    private String claddress;

    private static final long serialVersionUID = 1L;

    public String getClno() {
        return clno;
    }

    public void setClno(String clno) {
        this.clno = clno;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getClname() {
        return clname;
    }

    public void setClname(String clname) {
        this.clname = clname;
    }

    public Integer getClstate() {
        return clstate;
    }

    public void setClstate(Integer clstate) {
        this.clstate = clstate;
    }

    public String getCladdress() {
        return claddress;
    }

    public void setCladdress(String claddress) {
        this.claddress = claddress;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Clazz other = (Clazz) that;
        return (this.getClno() == null ? other.getClno() == null : this.getClno().equals(other.getClno()))
            && (this.getSno() == null ? other.getSno() == null : this.getSno().equals(other.getSno()))
            && (this.getClname() == null ? other.getClname() == null : this.getClname().equals(other.getClname()))
            && (this.getClstate() == null ? other.getClstate() == null : this.getClstate().equals(other.getClstate()))
            && (this.getCladdress() == null ? other.getCladdress() == null : this.getCladdress().equals(other.getCladdress()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getClno() == null) ? 0 : getClno().hashCode());
        result = prime * result + ((getSno() == null) ? 0 : getSno().hashCode());
        result = prime * result + ((getClname() == null) ? 0 : getClname().hashCode());
        result = prime * result + ((getClstate() == null) ? 0 : getClstate().hashCode());
        result = prime * result + ((getCladdress() == null) ? 0 : getCladdress().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", clno=").append(clno);
        sb.append(", sno=").append(sno);
        sb.append(", clname=").append(clname);
        sb.append(", clstate=").append(clstate);
        sb.append(", claddress=").append(claddress);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}